package com.nacos.controller;

import com.nacos.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class ProviderController {


    @GetMapping("/proTest")
    public User provider01(){
        User user=new User();
        user.setUsername("张三");
        user.setAge(20);

        return user;
    }

}
